return result;
}
+static void
+clear_completions (GtkFileChooserEntry *chooser_entry)
+{
+ chooser_entry->has_completion = FALSE;
+ chooser_entry->load_complete_action = LOAD_COMPLETE_NOTHING;
+}
+
/* This function will append a directory separator to paths to
* display_name iff the path associated with it is a directory.
* maybe_append_separator_to_path will g_free the display_name and
gchar *common_prefix;
GtkFilePath *unique_path;
+ clear_completions (chooser_entry);
+
find_common_prefix (chooser_entry, &common_prefix, &unique_path);
if (unique_path)
install_start_autocompletion_idle (chooser_entry);
}
-static void
-clear_completions (GtkFileChooserEntry *chooser_entry)
-{
- chooser_entry->has_completion = FALSE;
- chooser_entry->load_complete_action = LOAD_COMPLETE_NOTHING;
-}
-
static void
clear_completions_if_not_in_change (GtkFileChooserEntry *chooser_entry)
{